package com.liming.common.pojo.vo.authinfo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author liming
 * @date 2025/2/16
 */
@Data
@Schema(description = "菜单树VO")
public class MenuVO {

    @Schema(description = "菜单ID")
    private Long id;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "路由路径")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "菜单状态（0停用 1正常）")
    private Integer status;

    @Schema(description = "是否隐藏（0显示 1隐藏）")
    private Integer hidden;

    @Schema(description = "子菜单")
    private List<MenuVO> children;
}
